﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using TripAssistantDesktop.View;

namespace TripAssistantDesktop.Modules
{
    class TripViewModule : IModule
    {
        private readonly IRegionViewRegistry regionViewRegistry;
        public TripViewModule(IRegionViewRegistry registry)
    {
        this.regionViewRegistry = registry;   
    }

        public void Initialize()
        {
            //We need to register our Module in TripNavigationRegion.
            regionViewRegistry.RegisterViewWithRegion("DetailsRegion", typeof(TripView));
        }
    }
}
